package com.cxf.service;

import com.cxf.pojo.Admin;

import java.util.List;

public interface AdminService {
	void stopAdmin(String adminName);
	void startAdmin(String adminName);
	List<Admin> getAllAdmin();
	String getRoleByName(String adminName);
	Integer getAdminIdByName(String adminName);
	void updateAdmin(Admin admin);
	void addAdmin(Admin admin);
	Admin findAdminByName(String name);
	Admin getAdminById(Integer adminId);
	/**
	 * 验证管理员身份 
	 * @param
	 * @return
	 */
	void validate(String adminName, String password) throws Exception;
}
